package com.skeleton.db.dto;

import com.skeleton.common.base.dto.BaseDto;
import com.skeleton.db.entity.LoginHistory;

public class LoginHistoryDto extends BaseDto {

	private String userLoginname;
	private int loginDttm;
	private String loginDttmStr;
	private char loginStatus;
	private String loginAddress;
	private String loginIp;

	public LoginHistory toEntity() {
		LoginHistory entity = new LoginHistory();
		entity.setLoginname(userLoginname);
		entity.setLogin_dttm(loginDttm);
		entity.setStatus(loginStatus);
		entity.setAddress(loginAddress);
		entity.setIp(loginIp);
		return entity;
	}

	public String getUserLoginname() {
		return userLoginname;
	}

	public void setUserLoginname(String userLoginname) {
		this.userLoginname = userLoginname;
	}

	public int getLoginDttm() {
		return loginDttm;
	}

	public void setLoginDttm(int loginDttm) {
		this.loginDttm = loginDttm;
	}

	public String getLoginDttmStr() {
		return loginDttmStr;
	}

	public void setLoginDttmStr(String loginDttmStr) {
		this.loginDttmStr = loginDttmStr;
	}

	public char getLoginStatus() {
		return loginStatus;
	}

	public void setLoginStatus(char loginStatus) {
		this.loginStatus = loginStatus;
	}

	public String getLoginAddress() {
		return loginAddress;
	}

	public void setLoginAddress(String loginAddress) {
		this.loginAddress = loginAddress;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

}
